package com.arelikebrothers.demo.spring.boot.simplestart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lennon on 23/05/2017.
 */
@RestController
@EnableAutoConfiguration
public class BbsDemo {

    @RequestMapping("/")
    public String index() {
        return "欢迎光临我的BBS";
    }

    public static void main(String[] args) {
        SpringApplication.run(BbsDemo.class, args);
    }
}
